package org.hrhr74.control.deepseek_api;

import lombok.extern.slf4j.Slf4j;

//import org.springframework.http.HttpRequest;
import org.hrhr74.service.IDeepSeekService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController("DS")
@RequestMapping("/aidemo/hrhr74")
@Slf4j
public class DSController {

    @Autowired
    IDeepSeekService deepSeekService;

    @PostMapping("/chat")
    public String chat(@RequestParam String userMessage){
        log.debug("aaa");
        return deepSeekService.callDS(userMessage);
    }
}
